< previous page page_531 next page >

Page 531
Data Environment Designer
The Data Environment Designer is a design-time tool that allows you to create connections to a database. These connections can be used at design time to bind controls on forms to the tables/columns in the designer. You can also use these connections at design time to bind tables/columns to the Microsoft Data Report Designer. These connections are also used at runtime to create Recordset and Command objects. The Command objects can run stored procedures or SQL statements and return recordsets, or they can run SQL action queries. This tool is available in both the Professional and Enterprise Editions of Visual Basic.
To add a Data Environment Designer to your project, select Project, Add Data Environment from the Visual Basic menu. This brings up the designer shown in Figure 27.1.
8160-0531a.gif
Figure 27.1
The Data Environment Designer.
Once you have the Data Environment Designer in your project, you can name the data environment and then set the properties for the connection that has automatically been added to this data environment. You must have at least one Connection object for your data environment. A data environment, by itself, does nothingits the connection that you use to get at your database.

 
< previous page page_531 next page >

If you like this book, buy it!